package disanzifu;

import java.util.Scanner;

public class String1 {
    public static void main(String[] args) {
        char y;
        while (true){
            System.out.println("输入一个字符，结束---N");
            Scanner scanner = new Scanner(System.in);
            String next= scanner.next();
            y=next.charAt(0);
            System.out.println("y="+y);
            if (y=='N'){
                System.out.println("结束了");
                break;
            }
        }
    }
}
